var $table = $('#table'), $button = $('#button');
var zTree, rMenu;
$(function() {
	getTree();
});
function getTree() {
	$.ajax({
			url : RS.webPath + '/admin/rsMenu/queryTree',
			type : 'get',
			dataType : 'json',
			success : function(ret) {
				zTree = $.fn.zTree.init($("#organTree"), setting, ret);
				rMenu = $("#rMenu");
				zTree.expandAll(true);
			}
	});
}
function submitData() {
	parent.getParent(pid, pname);
}